//
//  TLMsgNotTableViewCell.m
//  WXReader
//
//  Created by huaya on 2025/3/20.
//  Copyright © 2025 Andrew. All rights reserved.
//

#import "TLMsgNotTableViewCell.h"
@interface TLMsgNotTableViewCell()
@property (weak, nonatomic) IBOutlet UIView *contentV;

@end

@implementation TLMsgNotTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.userImgView.layer.masksToBounds = YES;
    self.userImgView.layer.cornerRadius = 38/2;
    _contentV.layer.cornerRadius = 8;
}
- (void)setStatusWithType:(BOOL)type{
    
    if (type) {
        //左边
        self.titleLab.text = @"Reply to my comment";
        self.contentLab.hidden = NO;
        self.replayLab.hidden = NO;
        self.replayImgView.hidden = NO;
    }else{
        //右边
        self.titleLab.text = @"Likes on my comment";
        self.contentLab.hidden = YES;
        self.replayLab.hidden = YES;
        self.replayImgView.hidden = YES;
        
    }
    
}
- (void)setDataModel:(TLNotiThumbedModel *)dataModel{
    if (dataModel) {
        _dataModel = dataModel;
        
        [_userImgView sd_setImageWithURL:[NSURL URLWithString:dataModel.headPic]];
        
        _userNameLab.text = dataModel.nickName;
        
        _atLab.text = dataModel.parentContent;
        _contentLab.text = dataModel.nowContent;
        
        _timeLab.text = [NSDate convert2LocalTimeWithString:dataModel.createTime andWithFormatter:@"yyyy-MM-dd"];
        
    }
}
@end
